package com.sanyang.pda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.MovementBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.projectbase.R;

import java.util.List;

public class MovementAdapter extends BaseAdapter<MovementBean> {
    public MovementAdapter(int layoutResId, @Nullable List<MovementBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MovementBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_name,item.getArticleId());
        helper.setText(R.id.tv_goods_name,item.getArticleName());
        helper.setText(R.id.tv_batch,item.getBatchNo());
        helper.setText(R.id.tv_stock_num,item.getStockNum()+"");
        helper.setText(R.id.et_admire_date,item.getExpiringTime());

    }
}
